﻿using System.Collections.Generic;
using System.Linq;
using Inscriptionem.Areas.Inscriptionem.Models.Enums;
using Inscriptionem.Areas.Inscriptionem.Models.Requests;

namespace Inscriptionem.Areas.Inscriptionem.Models.Views
{
    public class PageViewModel : PageRequestModel
    {
        public PageViewModel()
        {
            Languages = new ORM.DB().Languages.OrderBy(l => l.Order);
        }

        public IEnumerable<ORM.Language> Languages { get; protected set; }

        public ORM.Member Member { get; set; }
        public PageError Error { get; set; }
    }
}